ROOT := $(shell pwd)
SRCS := $(wildcard *.c)
OBJS := $(patsubst %.c,$(OUTPUT)/%.o,$(SRCS))


.PHONY: all clean

all: $(OBJS)

$(OUTPUT)/%.o: %.c
	@mkdir -p $(OUTPUT)
	@$(CC) $(CFLAGS) -c $^ -o $@

clean:
	@rm -f $(OBJS)
